package com.cn.thread.c00_history;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
 * @author he_ls
 * @since 2024/7/16 17:44
 **/
public class ThreadLocalTest {
    static ExecutorService es = Executors.newFixedThreadPool(10);

    public static void main(String[] args) {
        try {
            for (int i = 0; i < 1000; i++) {
                int milSecond = i;
                es.submit(new Runnable() {
                    @Override
                    public void run() {
                        System.out.println(DateFormatUitls.format(milSecond));
                    }
                });
            }
        }catch (Exception e){
        }finally{
            es.shutdown();
        }
    }
}
